package com.dfe.backend.common.websocket.server;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * 【描述】：
 *
 * @author LiChang
 * @since 2025-8-9 8:41
 */
@Configuration
public class WebSocketConfig {
    /**
     * 用于扫描和注册带有@ServerEndpoint注解的实例
     *
     * @return ServerEndpointExporter
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}
